package data.dao;

import java.sql.SQLException;
import java.util.ArrayList;

import data.dto.NatureOfLeaveDTO;
import data.searchdto.NatureOfLeaveSearchDTO;

public interface NatureOfLeaveDAO {
	public ArrayList<NatureOfLeaveDTO> findNatureOfLeavebyName(
			NatureOfLeaveSearchDTO natureofleavesearchdto)
			throws LeaveDAOException;

	public ArrayList<NatureOfLeaveDTO> findAllNatureOfLeave()
			throws LeaveDAOException, data.dao.daoImplementation.SQLException, SQLException;

	public void insertLeaveDetailType(NatureOfLeaveDTO LeaveDetail)
			throws LeaveDAOException, SQLException;

	public void updateLeaveDetailType(NatureOfLeaveDTO LeaveDetail)
			throws LeaveDAOException, SQLException;

	public void deleteLeaveDetailType(NatureOfLeaveDTO LeaveDetail)
			throws LeaveDAOException, SQLException;
}
